/**
 * 
 */
package com.shine.icis.hbean;

import java.io.Serializable;


/**
 * ETL上下文变量
 * @author zsy
 *
 */
public class ETLContextVar implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1998411859294309098L;
	private String varId;
	private String varName;//变量名称
	private String varValue;//变量值
	private String description;//说明
	public ETLContextVar() {
		
	}
	public ETLContextVar(String varName, String varValue, String description) {
		this.varName = varName;
		this.varValue = varValue;
		this.description = description;
	}
	public String getVarId() {
		return varId;
	}
	public void setVarId(String varId) {
		this.varId = varId;
	}
	public String getVarName() {
		return varName;
	}
	public void setVarName(String varName) {
		this.varName = varName;
	}
	public String getVarValue() {
		return varValue;
	}
	public void setVarValue(String varValue) {
		this.varValue = varValue;
	}
	

	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((varId == null) ? 0 : varId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final ETLContextVar other = (ETLContextVar) obj;
		if (varId == null) {
//			if (other.varId != null)
				return false;
		} else if (!varId.equals(other.varId))
			return false;
		return true;
	}
	
	
}

